This PowerShell script automatically sets a random image from a user-specified folder as the Windows lock screen wallpaper. It uses modern Windows Runtime APIs for robust performance and does not require administrator privileges.
- No Admin Rights Needed: Runs safely under a standard user account.
- Random Image Selection: Automatically picks a random image (
.jpg,.jpeg,.png) from your chosen folder. - Detailed Logging: Creates a log file (
LockScreen_Log.txt) in yourDocumentsfolder. This file records every step of the process, making it easy to troubleshoot any issues. - Path Validation: Checks if the specified image folder exists before attempting to read from it.
